{extend name="public:base"/}


{block name="title"}编辑物流货运{/block}
{block name="style"}{/block}

{block name="main"}

<section class="content" xmlns="http://www.w3.org/1999/html">
    <div class="row">

        <div class="col-md-12">

            <div class="row">
                <div class="col-lg-12">
                    <div class="box">
                        <div class="box-header with-border">
                            <h3 class="box-title">编辑物流货运</h3>
                        </div>
                        <form  id="pt_form" method="post">
                            <div class="box-body">

                                <input type="hidden" name="shipping_id" value="<?=$model['shipping_id']?>" ?>
                                <div class="clearfix"></div>

     
                                <div class="form-group required">
                                    <div class='col-sm-2 text-right'>
                                        <label for="shipping_code" class="control-label Validform_label" >快递代号</label>
                                    </div>
                                    <div class='col-sm-10'>
                                        <input type="text" id="shipping_code" class="form-control" name="shipping_code" placeholder="请输入快递代号" value="<?=$model['shipping_code']?>" datatype="s2-20" errormsg="快递代号超出长度范围">
                                        <div class="help-block"></div>
                                    </div>
                                </div>
          
                                <div class="form-group required">
                                    <div class='col-sm-2 text-right'>
                                        <label for="shipping_name" class="control-label Validform_label" >快递名称</label>
                                    </div>
                                    <div class='col-sm-10'>
                                        <input type="text" id="shipping_name" class="form-control" name="shipping_name" placeholder="请输入快递名称" value="<?=$model['shipping_name']?>" datatype="s2-120"  errormsg="快递名称超出长度范围">
                                        <div class="help-block"></div>
                                    </div>
                                </div>
          
                                <div class="form-group ">
                                    <div class='col-sm-2 text-right'>
                                        <label for="shipping_desc" class="control-label Validform_label" >描述</label>
                                    </div>
                                    <div class='col-sm-10'>
                                        <input type="text" id="shipping_desc" class="form-control" name="shipping_desc" placeholder="请输入描述" value="<?=$model['shipping_desc']?>" datatype="s2-255" ignore="ignore"  errormsg="描述超出长度范围">
                                        <div class="help-block"></div>
                                    </div>
                                </div>
          
                                <div class="form-group required">
                                    <div class="col-sm-2 text-right">
                                        <label class="control-label Validform_label">是否开启                                        </label>
                                    </div>

                                    <div class="col-sm-10">
                                        <div>
                                      
                                            <span style="color:#636f7a"><input type="radio" name="enabled" value="0" datatype="*"  nullmsg="请选择是否开启" <?=$model['enabled']==0?'checked="checked"':''?>>否</span>

                                            
                                            <span style="color:#636f7a"><input type="radio" name="enabled" value="1" <?=$model['enabled']==1?'checked="checked"':''?> >是</span>

                                                                                    </div>
                                        <div class="help-block"></div>
                                    </div>
                                </div>


                            </div>
                            <div class="box-footer text-center">
                                <button class="btn btn-primary" type="submit">保存</button>
                                <span class="btn btn-white" onclick="history.go(-1)">返回</span>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
{/block}

{block name="js"}
<script>

    var validate = validator('#pt_form');
    
</script>
{/block}